﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Linker.TaskCenter.Services.Dto
{
    public class CreateOrUpdateServiceDto
    {
        public Guid? Id { get; set; }

        [Required] [MaxLength(128)] public string ServerName { get; set; }

        [MaxLength(128)] public string Method { get; set; }

        [Required] [MaxLength(128)] public string Url { get; set; }

        [MaxLength(255)] public string Description { get; set; }

        [Required] public int MaxRetry { get; set; }

        [MaxLength(255)] public string HealthCheckUrl { get; set; }
    }
}